<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>订单详情页</title>

    <script type="text/javascript" th:src="@{/bootstrap-3.3.7-dist/js/bootstrap.js}"></script>

    <script type="text/javascript" th:src="@{/bootstrap-3.3.7-dist/css/bootstrap.css}"></script>

    <script type="text/javascript" th:src="@{/js/jquery-1.12.4.min.js}"></script>

    <script type="text/javascript" th:src="@{/js/jquery.md5.js}"></script>

</head>
<body>

    <div>秒杀订单详情</div>
    <table class="table" id="goodsList">

        <tr>
            <td>商品名称</td>
            <td th:text="${goods.goodsName}"></td>
        </tr>

        <tr>
            <td>商品图片</td>
            <td><img th:src="@{${goods.goodsImg}}" width="100" height="100"/></td>
        </tr>

        <tr>
            <td>订单价格</td>
            <td th:text="${orderInfo.goodsPrice}"></td>
        </tr>

        <tr>
            <td>下单时间</td>
            <td th:text="${#dates.format(orderInfo.createDate,'yyyy-MM-dd HH:mm:ss')}"></td>
        </tr>

        <tr>
            <td>订单状态</td>
            <td>
                <span th:if="${orderInfo.status eq 0}">未支付</span>
                <span th:if="${orderInfo.status eq 1}">已支付</span>
                <span th:if="${orderInfo.status eq 2}">已发货</span>
                <span th:if="${orderInfo.status eq 3}">已收货</span>
                <span th:if="${orderInfo.status eq 4}">已退款</span>
                <span th:if="${orderInfo.status eq 5}">已完成</span>
            </td>
            <td>
                <button class="btn btn-block btn-primary" type="submit" id="payButton">立即支付</button>
            </td>
        </tr>

        <tr>
            <td>收货人</td>
            <td>李女士</td>
        </tr>

        <tr>
            <td>收货地址</td>
            <td>四川省成都市高新西区</td>
        </tr>

    </table>

</body>
</html>